USMT backup powershell script

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

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 9 years and 3 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.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: USMT backup powershell script

Post by jvierra »

Just follow the example.
User avatar
scott.fox
Posts: 37
Last visit: Fri May 05, 2017 1:22 pm

Re: USMT backup powershell script

Post by scott.fox »

first off, the script doesn't seem to be functional on the site, you try and create pages from it as is and it breaks. so that's a lot of help by saying "just follow the example" thanks.

and secondly does anyone know how to package the exe with paths to the cmd line without it being C: or D:..i tried .\ but thats only calling it in a current directory. the letter could change depending on what drive the system chooses
User avatar
Alexander Riedel
Posts: 8479
Last visit: Thu Mar 28, 2024 9:29 am
Answers: 19
Been upvoted: 37 times

Re: USMT backup powershell script

Post by Alexander Riedel »

Please read the blog article all the way to the end.
There is a control set already built into PowerShell Studio. You can just use that.
Alexander Riedel
SAPIEN Technologies, Inc.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: USMT backup powershell script

Post by jvierra »

Here is a trivial example:
Attachments
Demo-JobTrakker.pff
(14.68 KiB) Downloaded 149 times
User avatar
scott.fox
Posts: 37
Last visit: Fri May 05, 2017 1:22 pm

Re: USMT backup powershell script

Post by scott.fox »

thank you for that.

do you know how i can go about forcing studio to run in V2 instead of V4, i actually need this to run on XP first. and the command line portion does work in V2 as its just command line. but i cant find anywhere in powershell studio to force it into V2 only.

thanks
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: USMT backup powershell script

Post by jvierra »

It is the dropdown in the "Platform" group on the "Home" tab.

DO you know that there is an online manual for PS that you can open and read by going to the "Help" tab and clicking "Product Manual".
User avatar
scott.fox
Posts: 37
Last visit: Fri May 05, 2017 1:22 pm

Re: USMT backup powershell script

Post by scott.fox »

i had a feeling that was how. but i only have v4 available. and yes ive taken a look at the manual but couldnt find what i was searching for
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: USMT backup powershell script

Post by jvierra »

V2 is not available on 2012 or on any version of Windows where it was removed.

On PowerShell Studio 2012 it is a button under the dropdown. Hover to see.
User avatar
scott.fox
Posts: 37
Last visit: Fri May 05, 2017 1:22 pm

Re: USMT backup powershell script

Post by scott.fox »

i found it actually, there is a .exe program inside the sapien folder that has the register controls. and i re did the cachebuilder and it showed up finally
This topic is 9 years and 3 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.
Locked