How To Remove Files from the PATH of a powershell session
Hey Guys just wondering if it’s possible for a powershell process to not have access/knowledge of certain files existing. For instance, powershell goes to grab a DLL file from a particular location...
View ArticlePulling variables from a text file
I am trying to pull variables from a text file and I was wondering what the difference was between stating in a script a variable such as $groups = “Group1″,”Group2” vs pulling it from a text file by...
View ArticleKevMar: SoCal PowerShell user group
Hello everyone. I have been an active member of this community for a while now and I have helped many users move past problems and grow in their understanding of PowerShell. I also run a PowerShell...
View ArticlePersonal Powershell Script Library Tool (demo)
Hey all! Sorry to those of you that were confused by my first post, I am new to reddit. I recently finished a small app that allows you to save powershell scripts online so you can access them from...
View ArticleCompare entries from a textfile with keys in hash-table
Hey All, I’m in need of a little powershell help I have a hash-table setup with keys/values like this : key1 = value1 key2 = value2 key3 = value3 … On the other hand, I import a text-file (can be any...
View ArticleDisconnect specific user from server using ID
I wrote a script that will refine users that are either disconnected or have an idle time of over than 60 min. I’ve already set-up these parameters and the filter works well, however; instead of...
View ArticleFinding/removing all commas in Excel file, then saving to .csv
I have a .xlsx file that I need to remove all the commas from, then save it as a .csv file. The function I’m currently using will convert the file and save it, but removing the commas isn’t working....
View ArticleRetrieve install date from list of remote computers
I understand I can obtain the install date of a computer by using the following command: ([WMI]”).ConvertToDateTime((Get-WmiObject Win32_OperatingSystem).InstallDate) My next challenge is running this...
View ArticleWhy would this command not display a message on the screen of every domain...
icm -computername (get-adcomputer -filter *).name -scriptblock (msg * Testing 1.. 2.. 3..) Shouldn’t this be a one-line command that sends a message to everybody? Apparently it only sends the message...
View ArticleGetting confused on how to manipulate output concatenation to adhere to JSON...
Hi all, I think I’m siking myself out here. I am trying to run this function that checks Windows processes and outputs back whether it is “running” or “not running”: function Get-Processes {...
View ArticleDisconnect user from server with ID
Hi there, I’ve been working on script that will filter out users that have been active in for more than 60min or are disconnected. For the disconnect script, I used a simple open source script from a...
View ArticlePower and ASP.NET help
Hello, need some help. I developed a powershell script that allows me to send a soap UI call to our data power(message brokers) platform. What this script does is takes reward codes and “burns” them...
View ArticleFile share resource manager issue with powershell script?
Hi, I was wondering if someone else has had this issue im having, right i have FSRM on a test lab before putting it on production, this power shell helps to trigger email alert and blocks smb if a...
View ArticleGeneral script layout/structure and deployment
So this has been bugging me for a while, and I thought I’d see what everyone else was doing. Let’s say you have a script which needs to run as a scheduled task, and this script needs to log into a...
View Article“Rename-Computer $serial”. $serial needs to equal ONLY serialnumber.
# $serial = gwmi win32_bios | select SerialNumber # #or this # $serial = wmic bios get serialnumber rename-computer -newname $serial The problem with this is that it tries to rename the computer to...
View ArticleRun exe install remotely
I am trying to install software remotely on many machines in our domain. I have the file on a remote share and it copies down locally and then installs it. The problem I am having is the script hangs...
View ArticleHaving some real issues with the second hop
Hey guys, I’m having some real issues here with second hop. Have been googling and trying a bunch of things but keep running into either access denied errors or other stuff. I think I’m approaching...
View ArticleSpeeding up AD account creation script
I’ve created a huge jumbled mess of things to keep student accounts updated in our AD – this is a school system of ~10k students. It has been downloading a CSV export from our student management...
View ArticleGetting Monitor and cable Information
So I have a script that will get all monitor info of a remote PC and it works great. The only thing I am missing and I am not sure if its possible is to find out what cable type the monitor is...
View ArticleRetrieve values for a perf counter/instance
I’d like to write a short script that would capture values of “Hyper-V Hypervisor Virtual Processor% Guest Run Time” for each instance, then execute some logic based on those values. I’m trying to use...
View Article