Explorer Posted September 9 Report Share Posted September 9 Sorry, I couldn’t find it on the forum or in the instructions. Is it possible to use Windows variables in global variables? If this is possible, then how? Sorry for my English. Link to comment Share on other sites More sharing options...
Electrosokk Posted September 13 Report Share Posted September 13 You can use Windows env variables in the global variables the following way: Create a global variable {compname}, set its value to: $env:COMPUTERNAME In a batch script run: echo {compname:ps} In a powershell script run: iex $globalvars.compname.CachedContent You can see the output in the log (Ctrl+L) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now