The processes by which SMS objects are managed can be divided into the following categories:
- Creating an SMS object
- Modifying an SMS object
- Deleting an SMS object
- Calling a method on an SMS object
For more information on creating and deleting WMI objects, see the <linktext xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></linktext>WMI SDK.
To create an SMS object
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Connect to an SMS Provider, and get the SWbemServices object.
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Create an instance of an SMS object by using the <linktext xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></linktext>SpawnInstance method supported by the desired class. For example, to create an instance of a package object (SMS_Package), use the following code:
Set objNewPackage = objSWbemServices.Get("SMS_Package").SpawnInstance_() |
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Populate the required properties. For example, the following code sets the properties for a package:
objNewPackage.Name = "Package Name"
objNewPackage.Description = "A new package"
objNewPackage.PkgSourceFlag = 2
objNewPackage.PkgSourcePath = "C:\temp" |
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Save the SMS object by using the <linktext xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></linktext>Put_ method supported by the SMS object class. For example, the following line of code puts or saves a package:
To modify an SMS object
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Get the instance of the required SMS object by using the Windows Script Host GetObject method and supplying the path to the required object. For example, to get an instance of an advertisement object (SMS_Advertisement) identified as 99920002
, use the following code.
Set objAdvertisement = GetObject( "WinMgmts:root\SMS\site_999:SMS_Advertisement.AdvertisementID='99920002'") |
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Set the required properties of the SMS object. To enable the assigned schedule for an advertisement object, set the AssignedScheduledEnabled property to True, as in the following example:
objAdvertisement.AssignedScheduleEnabled=True |
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Update the SMS object by using the SMS object class Put method. For example, to update the advertisement opened in step 1, use the following code:
To delete an SMS object
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Get the instance of the required SMS object by using GetObject and supplying the path to the required object. For example, to get an instance of an advertisement object (SMS_Advertisement) identified as 99920003
, use the following code:
Set objAdvertisement = GetObject( "WinMgmts:root\SMS\site_999:SMS_Advertisement.AdvertisementID='99920003'") |
-
<content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></content>
Delete the SMS object instance by using the SMS object class <linktext xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"></linktext>Delete_ method. For example, to delete the advertisement object opened in step 1, use the following code:
分享到:
相关推荐
5. **客户端部署**:SMS 2003客户端的部署可以通过多种方式实现,如自动推送、脚本安装、GPO(组策略对象)或手动安装。 6. **安全管理**:确保安装过程中和之后的安全性,设置适当的访问控制和防火墙规则,防止...
smsapi-pl 针对node.js的SMSAPI.pl的实现使用此程序包,您可以轻松地通过波兰提供程序发送SMS 0.2.0版消息: 添加发送承诺用法: $npm install smsapi-pl然后: var sms = require ( 'smsapi-pl' ) ; 您可以放入sms...
标题中的“sms.rar_T3_sms_sms 接收_短信接收”表明这是一个关于短信接收的程序,主要用于T35i设备。这个程序具有处理和转发短信的功能,它通过UDP(User Datagram Protocol)协议来实现数据传输。 描述部分进一步...
**微软 SMS2003 教程:SMS2003 概览** 微软系统管理服务器(SMS,System Management Server)2003是微软推出的一款企业级的系统管理和部署解决方案,它允许管理员集中管理组织内的多台计算机,执行软件分发、补丁...
最后,根据项目需求,调用 `$easySms` 对象的 `send` 方法发送短信。 总的来说,EasySMS 是一个非常实用的 PHP 短信发送工具,它通过抽象各种服务商的接口,降低了开发者的使用门槛,提高了开发效率。如果你的项目...
你需要创建一个路由来处理这些回调,并使用`SMS::receive`方法解析请求内容。这个方法将返回一个包含短信信息的对象,如发件人、接收者和消息内容。 ```php use Illuminate\Http\Request; use SMS; Route::post('/...
function Sms_Send(Sms_TelNum:string;Sms_Text:string):integer;stdcall;external 'sms.dll'; Function Sms_Receive(Sms_Type:string;var Sms_Text:PChar):integer;stdcall;external 'sms.dll'; function Sms_...
1. SDK集成:首先,开发者需要下载并解压"eucp-sms-sdk.zip"文件,将包含的库文件导入项目中。根据开发语言(如Java、Python、iOS、Android等),参照官方文档进行集成。 2. API调用:初始化SDK,设置必要的参数如...
在IT行业中,PDU(Protocol Data Unit)编码是与GSM网络中的短消息服务(SMS)相关的技术。PDU模式是SMS的一种传输格式,用于在移动设备之间传递短信。在这个主题中,"Sms.rar_PDU编码_pdu_sms c_sms pdu_sms 解码...
通过ContentResolver和Uri,开发者可以直接查询Android的SMS提供者来获取或修改短信数据。例如,`content://sms/inbox`代表收件箱,`content://sms/sent`代表已发送的消息。 6. **SMS Java开发**: `sms_java`...
3. **短信监听**: 若要监听接收到的短信,需创建一个继承自`BroadcastReceiver`的类,并在`onReceive()`方法中处理`Intent.ACTION_SMS_RECEIVED`广播。注册该广播接收器时,也需要声明`RECEIVE_SMS`权限。 4. **...
- **文化转变**:SMS与CRM都需要组织文化的转变,鼓励开放沟通、共享责任以及积极的安全文化。 #### SMS与CRM的相反之处 - **实施范围**:CRM主要关注机组成员之间的互动与沟通,而SMS则涵盖了整个组织层面的安全...
为了使SMS服务器能在Active Directory中System容器中创建对象,需要赋予其写入权限。这一步骤通过修改System容器的权限设置来实现,推荐使用图形界面工具adsiedit进行。 **三、SMS 2003的安装与使用** #### SMS ...
《SMS到Mike21转换工具:sms2mikeV4.1_by火鸟1412详解》 在水动力学模拟领域,SMS(Surface-water Modeling System)和DHI Mike系列软件是广泛应用的两款工具。SMS主要用于绘制和编辑水文模型的网格,而Mike21则是...
// 创建短信对象 SmsMessage message = new SmsMessage(); message.setReceiver("13800138000"); message.setContent("您的验证码是1234"); // 发送短信 SendResult result = SMS4J.send(message); // 处理发送...
1. SMS架构:SMS系统架构主要包括短消息中心(SMSC)、短消息网关(SMGW)和移动站(MS)。短消息中心负责处理短消息的发送和接收,短消息网关负责将短消息从短消息中心传递到移动站,移动站是用户的手机或其他移动...
在本文中,我们将深入探讨如何在 Laravel 开发中集成 Yunpian SMS 服务。Yunpian 是一家提供高效、稳定、安全的短信服务的公司,而 Laravel 是一个流行的 PHP 框架,用于构建优雅的 Web 应用程序。当我们结合两者时...
标题中的“smd.rar_Sms j2me_j2me_j2me sms_send SMS_send sms j2me code”表明这是一个关于J2ME平台上的SMS(Short Message Service,短信服务)发送和接收的代码库或者教程。J2ME,全称为Java 2 Micro Edition,是...
赠送jar包:aliyun-sms-spring-boot-starter-2.0.2.jar 赠送原API文档:aliyun-sms-spring-boot-starter-2.0.2-javadoc.jar 赠送源代码:aliyun-sms-spring-boot-starter-2.0.2-sources.jar 包含翻译后的API文档...