اکتیو کردن ویندوز و آفیس از طریق kms server
سلام من یک دامین دارم که 500 تا کلاینت داره و برای اکتیو کردن ویندوز و آفیس این کلاینت ها به مشکل بر خوردم.سرور kms server رو راه اندازی کردم و الان مشکلی که دارم نمیتونم برم پشت تک تک سیستم ها kms server رو ست کنم.یک batch فایل دارم که در اون دستورات ست کردن ادرس kms server و اکتیو کردن ویندوز قرار گرفته به صورتی که وقتی فایل اجرا شد به صورت اتومات ویندوز و آفیس رو اکتیو کنه و از طریق gpo در قسمت scripts\logon این فایل رو لینک دادم به دامینم ولی مشکلی که هست فایل روی کلاینت ها نیاز به دسترسی ادمین داره که بتونه اجرا بشه و خطای privilage میده(ضمنا از طریق schedule هم تست کردم بازم جواب نداد).آیا راه حلی برای این مشکل وجود داره؟
نمیتونم توی قسمت اسکریپت کامندی اضافه کنم که فایل رو به صورت اتومات با دسترسی ادمین اجرا کنه؟
4 پاسخ
سلام
برای اینکار شما باید از Computer Configuration پالیسی رو ایجاد کنی تا با local system اجرا بشود نه User Configuration .
یا اینکه از Task Schedule استفاده کنی.
https://serverfault.com/questions/967045/start-gpo-script-as-administrator
نظر شخصی بنده، برای اجرای کامند و حتی نصب نرم افزار، بجای گروپ پالیسی از برنامه هایی مانند SCCM یا مشابه ساده تر آن، PDQ استفاده کنید که به مراتب ساده تر و حرفه ای تر از GPO ویندوزه
اگر تصمیم به استفاده از PDQ داشتید میتوانم از پکیج هایی که برای اکتیو ویندوز و آفیس تهیه کردم اسکرین شات بگیرم و برایتان بفرستم شما هم مشابه آن بسازید و اجرا کنید. تازه میتوانید آمار Inventory داشته باشید که KMS چه کسانی سرور شما هستند و چه کسانی نیستند...
ممنون از شما اقای اقامیری
بنده این روش رو امتحان کردم ولی برای اجرای فایل bat روی یوزرهای معمولی نیاز به دسترسی ادمین هست که بتونه فایل رو اجرا کنه
در غیر اینصورت task یا اجرا نمیشه یا پیغام privilage میده(ضمنا توی قسمت when running the task use the following user هم یوزری که دسترسی ادمین رو داره وارد کردم.)
توی پالیسی script/logon هم فایل bat رو دادم ولی بازم ارور privilage میده
سلام و عرض ادب
شما دستورات معمولی CMD که برای ست کردن KMS استفاده میشن رو داخل یک فایل Notepad بنویسین و پسوندشو Bat بزارین
این لینک شاید بدردتون بخوره (لینک از توسینسو)
Global Options:
/ipk <Product Key>
Install product key (replaces existing key)
/ato [Activation ID]
Activate Windows
/dli [Activation ID | All]
Display license information (default: current license)
/dlv [Activation ID | All]
Display detailed license information (default: current license)
/xpr [Activation ID]
Expiration date for current license state
Advanced Options:
/cpky
Clear product key from the registry (prevents disclosure attacks)
/ilc <License file>
Install license
/rilc
Re-install system license files
/rearm
Reset the licensing status of the machine
/rearm-app <Application ID>
Reset the licensing status of the given app
/rearm-sku <Activation ID>
Reset the licensing status of the given sku
/upk [Activation ID]
Uninstall product key
/dti [Activation ID]
Display Installation ID for offline activation
/atp <Confirmation ID> [Activation ID]
Activate product with user-provided Confirmation ID
Volume Licensing: Key Management Service (KMS) Client Options:
/skms <Name[:Port] | : port> [Activation ID]
Set the name and/or the port for the KMS computer this machine will use. IPv6 address must be specified in the format [hostname]:port
/ckms [Activation ID]
Clear name of KMS computer used (sets the port to the default)
/skms-domain <FQDN> [Activation ID]
Set the specific DNS domain in which all KMS SRV records can be found. This setting has no effect if the specific single KMS host is set via /skms option.
/ckms-domain [Activation ID]
Clear the specific DNS domain in which all KMS SRV records can be found. The specific KMS host will be used if set via /skms. Otherwise default KMS auto-discovery will be used.
/skhc
Enable KMS host caching
/ckhc
Disable KMS host caching
Volume Licensing: Token-based Activation Options:
/lil
List installed Token-based Activation Issuance Licenses
/ril <ILID> <ILvID>
Remove installed Token-based Activation Issuance License
/ltc
List Token-based Activation Certificates
/fta <Certificate Thumbprint> [<PIN>]
Force Token-based Activation
Volume Licensing: Key Management Service (KMS) Options:
/sprt <Port>
Set TCP port KMS will use to communicate with clients
/sai <Activation Interval>
Set interval (minutes) for unactivated clients to attempt KMS connection. The activation interval must be between 15 minutes (min) and 30 days (max) although the default (2 hours) is recommended.
/sri <Renewal Interval>
Set renewal interval (minutes) for activated clients to attempt KMS connection. The renewal interval must be between 15 minutes (min) and 30 days (max) although the default (7 days) is recommended.
/sdns
Enable DNS publishing by KMS (default)
/cdns
Disable DNS publishing by KMS
/spri
Set KMS priority to normal (default)
/cpri
Set KMS priority to low
/act-type [Activation-Type] [Activation ID]
Set activation type to 1 (for AD) or 2 (for KMS) or 3 (for Token) or 0 (for all).
Volume Licensing: Active Directory (AD) Activation Options:
/ad-activation-online <Product Key> [Activation Object name]
Activate AD (Active Directory) forest with user-provided product key
/ad-activation-get-iid <Product Key>
Display Installation ID for AD (Active Directory) forest
/ad-activation-apply-cid <Product Key> <Confirmation ID> [Activation Object name]
Activate AD (Active Directory) forest with user-provided product key and Confirmation ID
/ao-list
Display Activation Objects in AD (Active Directory)
/del-ao <Activation Object DN | Activation Object RDN>
Delete Activation Objects in AD (Active Directory) for user-provided Activation Object
کلا دو تا دستور هست ، اولیش kms رو set می کنه و دومیش دستور میده که فعال شه ، مثلا برای ویندوز
slmgr /skms kmsserverAddress
slhmr /ato
برای آفیس هم فکر می کنم سه تا command هستش.
کلشون رو بدید به یه group policy که schedule بشن.