Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

Hi I have a PowerShell script I have been looking into over the last week, The script alerts me if a server has been rebooted/shutdown and shows me the following event ID related to reboot or shutdown ...
NathanExact's user avatar
1 vote
3 answers
67 views

I'm trying to create a script to make reading a CSV easier for a task I'm carrying out. E.g. I have a csv with the following headers and values Value1,Value2,Value3,Value4 10,20,30,40 11,12,13,14 I'...
Missed's user avatar
  • 11
5 votes
2 answers
168 views

The formal description of the comma operator (,) is: As a binary operator, the comma creates an array or appends to the array being created. In expression mode, as a unary operator, the comma creates ...
iRon's user avatar
  • 24.5k
3 votes
2 answers
114 views

I'm sure this is on here somewhere, but it did not appear in the top 100 search results. It's hard to search for. But basically The [regex]::Matches() function returns a MatchCollection type object ...
john v kumpf's user avatar
0 votes
0 answers
36 views

I want a simple Powershell GUI, to have the local computer let me know when any of its NICs drop connection. The results should be a .csv file, stored in a folder named NIC_Drops, located in the root ...
Geoffrey Bertollini's user avatar
2 votes
1 answer
100 views

I have crated a PowerShell script that sends me an email alert when a server reboots/shuts down, and shows the event ID related to the reboot/shutdown event (e.g. clean reboot "Event ID 1074 or ...
NathanExact's user avatar
Advice
0 votes
7 replies
45 views

I have created a PowerShell script that alerts me via email when a server reboots/shutdown, it sends a message and shows me the specific event ID related to the reboot/shutdown event. It works ...
NathanExact's user avatar
1 vote
0 answers
71 views

Lately, Windows 11 is becoming increasingly bloated. Everything appears to load with some form of lag and I've notice this happening in Windows Terminal. Windows Terminal allows you to right-Click ...
suchislife801's user avatar
1 vote
1 answer
106 views

As part of a script I'm working on, I need to call a NetBackup command via PowerShell using invoke-command. The command should be like so: & c:\NetBackup\bin\admincmd\bpflist -d $startDate -e $...
smwk's user avatar
  • 228
Advice
0 votes
2 replies
52 views

I was trying to create an alias in PowerShell. I am using PowerShell version 7.5.4 and used the command: SET-ALIAS -NAME gips -VALUE git pull origin \<branch_name\> When I ran the GET-ALIAS -...
Moksh Jain's user avatar
16 votes
1 answer
894 views

I am running a simple C program on Windows using VS Code and the PowerShell terminal. My code intentionally does not include a newline character (\n) at the end of the printf statements. Code #include ...
Aravind K.B's user avatar
0 votes
1 answer
90 views

I am writing a powershell script to get a csv of information about certificates from a certain CA. I have been using this command: $output = certutil -config $caName -view -out "RequestID, ...
cTem's user avatar
  • 21
2 votes
1 answer
78 views

I created a Helper module with some handy functions. This module itself needs a few other modules to run. In my scripts, I import it with Import-Module Helper -Verbose:$false so even if the outer ...
Peyre's user avatar
  • 691
-3 votes
0 answers
70 views

I'm making a small app for Windows that uses powershell for some tasks. It occurred to me that in some corporate environments the admins may disable ps/ cmd for normal users. In that case how does one ...
sct209's user avatar
  • 1
0 votes
1 answer
32 views

I want to export, for users located under a specific OU, only the entries in the proxyAddresses attribute that belong to a specific domain (e.g., only addresses ending with @domain.co.uk). I tried a ...
Arbelac's user avatar
  • 1,954

15 30 50 per page
1
2 3 4 5
7950