• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 118
  • Last Modified:

I've created a .lnk that creates system restore points on demand. I want to run it "quietly" or "in the background" so my users do not see the cmd window.

I used the method listed below to create a .lnk file, I then used psexec to push that .lnk file to each workstation.  I then added a command in the logon script for the users to run that shortcut on login.  It's working perfectly, creating almost daily system restore points.  I'd like to make the cmd window not pop up though, I know it only sits there for 10-15 seconds but my users are complaining.

I'm sure there's a simple argument or something I could add to the .lnk or possibly the logon batch file but i'm not as familiar with scripting this type of stuff as I should be.

Daniel Checksum
Daniel Checksum
1 Solution
> I'd like to make the cmd window not pop up though, I know it only sits there for 10-15 seconds but my users are complaining.

So, it's better to wait 10-15 seconds and not see anything? Won't users still complain? Especially if they don't know what's going on. How about putting a message in the window? At least they know what's happening.
Daniel ChecksumAuthor Commented:
You don't know my users.  I'd really like it just be silent, they won't really notice if their pc runs slightly slower for a few seconds at startup, but that big black box that shows up does.  The box itself even says "Creating Restore Point" and we've emailed the users and let them know that's what we're doing.  Still getting complaints.  I just need to know if there's a way to run that exact function quietly.
Davis McCarnOwnerCommented:
Use START /MIN <yourfile.bat> and it will run minimized:
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Daniel ChecksumAuthor Commented:
Thanks, Davis.  I believe that will work, deploying it now after testing it on my own machine.
Aaron TomoskyTechnology ConsultantCommented:
to do a fully hidden exe or bat file, make a something.vbs and put this in it
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "C:\foldername\filename.exe" & Chr(34), 0
Set WshShell = Nothing

Open in new window

Daniel ChecksumAuthor Commented:
Unfortunately, Aaron, i'm not allowed to use vbs scripts here.  Thanks for your input though, my initial system restore process was a vbs script.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now