alternate creds not working

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
mqh77777
Posts: 252
Last visit: Mon Feb 26, 2024 10:07 am
Has voted: 1 time

alternate creds not working

Post by mqh77777 »

PowerShell Studio 2018 v5.5.153
OS Windows 10
x64

I've created a form that does the following

Code: Select all

$form1_Load={
	$description = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\Acme\Deploy' -Name Description).Description
[i]	# YES, the description key in the registry has a value[/i]
	$GETPCName = $env:COMPUTERNAME
	Set-ADComputer "$GETPCName" -Description "$ADDESCRIPTION"
	$form1.Close()
}
I have gone to Settings \ Output Settings \ Alternate Credentials and I've picked an account that has rights within AD to modify/change/delete both user and machine accounts. I compile this and run it. the machine description does not get updated. Why would it not update?
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: alternate creds not working

Post by mxtrinidad »

Possibly a variable issue: Is it $Description or $AddDescription?

:)
User avatar
mqh77777
Posts: 252
Last visit: Mon Feb 26, 2024 10:07 am
Has voted: 1 time

Re: alternate creds not working

Post by mqh77777 »

it is early and I have not had my coffee and I missed that :-( thanks~!
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: alternate creds not working

Post by mxtrinidad »

No worries! This happens to everyone.
:)
This topic is 5 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.