Charlypop2357
Member
- Messages
- 13
- Solutions
- 2
- Reaction score
- 1
- Points
- 1
Hi community,
Here is my scenario. I use a Powershell form I developped myself to set a few task sequence variables that are used later on during the OSD.
I have added another TS var which stores the user's firstname and lastname so then I set the AD computer's description attribute with the proper value.
I would like to pass that TS var in a task run as a domain user.
So far, I have created a command line task which holds that line : powershell.exe -ExecutionPolicy ByPass -File "my_pwsh_function.ps1" "Computer of `"%OSDUserID%`""
For your information - "Computer of `"%OSDUserID%`"" is the parameter passed to the function.
The question is : is that going to work?
Second question : I would like to write a more complex script so I can move the computer to the proper OU. Can I pass the TS var inside a Powershell script and have it to work?
Thank you guys for your insight.
Here is my scenario. I use a Powershell form I developped myself to set a few task sequence variables that are used later on during the OSD.
I have added another TS var which stores the user's firstname and lastname so then I set the AD computer's description attribute with the proper value.
I would like to pass that TS var in a task run as a domain user.
So far, I have created a command line task which holds that line : powershell.exe -ExecutionPolicy ByPass -File "my_pwsh_function.ps1" "Computer of `"%OSDUserID%`""
For your information - "Computer of `"%OSDUserID%`"" is the parameter passed to the function.
The question is : is that going to work?
Second question : I would like to write a more complex script so I can move the computer to the proper OU. Can I pass the TS var inside a Powershell script and have it to work?
Thank you guys for your insight.