Hi
I am trying to automate activating server on a Windows 2008 R2 system which is not connected to internet . The script used is Set-ItemRDS:\LicenseServer\ActivationStatus-Value1-ConnectionMethodPW-LSID$ServerLicenseID
When exectuted on Windows 2008 R2 throw the following error . I am connecting to the server remotely using mstsc and executing the script .
Error thrown
Set-Item : Access to the object at RDS:\LicenseServer\ActivationStatus is denied for the cmdlet Set-Item+ CategoryInfo : PermissionDenied: (:) [Set-Item], AccessViolationException
+ FullyQualifiedErrorId : PermissionDenied,Microsoft.PowerShell.Commands.SetItemCommand
Please suggest how to fix this .
Regards
Somaraj