8/31/2023 0 Comments Where to find firefox profile![]() $loggedonuser = (Get-WmiObject -Class win32_ComputerSystem | Select Username).Username.Split('\') Here's the code: #Get logged on user, remove the domain portion so it's just the username Again, should make no difference which way you do it, I'll leave it up to you. You can clearly see in the screenshot the big white window to paste code into, or the link below if you want to save this as a. In the screenshot above I put the step right above the Install step on the imported package as an example, but really you could put it anywhere before the install step, in fact it might be best to grab that backup first before the package does anything else to the remote system. ps1 file and Insert a Powershell Script into the Powershell step, whichever you want to do. Insert a powershell step and paste this code into the step, or save this code into a. ![]() I just wrote this and tested it on Windows 8.1, the path appears to be the same for the profile between Win 7 and 8.1, so should work as-is but the path might need a little tweaking.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |