Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Computer objects exist and change is managed by field

Messages
9
Reaction score
0
Points
1
Hello
Thanks for reading my post, going to be honest I have been working on this for days and have little to show for my efforts, I am not a scripter, although I try my best
I am trying to implement a script to check if the computer name exists in AD and delete the computer account, I currently use the OSDCOMPUTERNAME variable step to populate the computer name. I found a few guides that show a prompt for the to be entered checked, I am trying to get the script to use the variable from the OSDCOMPUTERNAME.
Secondly, we manually changed the Name under Managed under the AD computer object I was wondering if that could be changed using OSDinfo_username variable
any help would be wonderful
 
Back
Top