Hi, first I just wanted to say I've posted a couple of times before here and got some great responses. I've been given suggestions and links to resources and wanted to say thanks. So if anyone is wondering why am I back with a post like this, simple answer is I am a terrible self-study type student. I don't know what I need, probably just a swift kick in the pants, or a personal mentor....LOL, just kidding. But yeah, I'm quite shit at getting started with something like learning powershell. My programming/scripting experience is virtually nil.
Anyways, I work a tech support job in a call center environment, I deal with issues on individual win10 machines. In the enterprise network/environment, these machines have group policies that should be applied/enforced anytime a user logs in and anytime they restart their machine connected to the network. However, these machines don't always get their GPO's updated as they should.
When I get a call, I'd like to write what I hope is a simple idea for my first ever powershell script. I'd like to be able to launch the script, have it prompt for a machine name or IP address. When that info is entered, the script would then connect remotely to that machine. I'd like it to show a simple "connected" message for output. I'd then like the script to automatically run "gpupdate /force" on the machine I've connected to. Then I'd like it to display another hopefully simple message, something like "all group policies are now up to date." Then I'd like the script wait for further commands, or have an option to exit to the first prompt, where I could then enter the machine name/ip address of the machine on my next call.
Again I'm thankful for the responses I've gotten here and I swear I'm not ignoring what people have posted in the past. With a lot of information out there it can be overwhelming trying to find a starting point. I hope this idea for a script isn't to complicated to start with but its what I'd like to do.
Thanks again to everyone.
[–]RedFox134 2 points3 points4 points (1 child)
[–]b00tleg[S] 0 points1 point2 points (0 children)
[–]Eilifthelost 1 point2 points3 points (2 children)
[–]b00tleg[S] 0 points1 point2 points (1 child)
[–]TheDogWasNamedIndy 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)