Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Enable-ComputerRestore error msg "Include System Drive in the list of drives"

Hi,I'm running    Enable-ComputerRestore -drive "C:\"    in WinPE8 but get this message "Include System Drive in the list of drives" in red ...The C: drive is the Windows 8 system drive ...If I run...

View Article


Image may be NSFW.
Clik here to view.

Sending data from Powershell output to SQL Server table.

Hello friends, I am a very new bee to Power Shell. I would like to put output of powershell output to a SQL table. Here is the code. I know some scripting guy put two functions Out-DataTable and...

View Article


Windows 10 update server not working trying to update and it just freezes up...

I'm trying to do a Windows turn update and it won't let me Windows 10 update I think the update server is down and needs to be reset I need to do this is possible because I'm unable to do a Windows 10...

View Article

Error handling in remote jobs

Hello, i need to solve error handling when i run some jobs on remote computers via invoke-command.Some computers might be offline, have PSRemoting disabled, I have access denied to them and so on....

View Article

CVS output from power-shell just outputting text length

i am writing a script to pull ad users who have not logged in within the last 90 days from a specific ou. that part works fine however when i try to get the users names and login times it just outputs...

View Article


Image may be NSFW.
Clik here to view.

Debug simple powershell script: get macaddress, username and netbios in csv file

Hi everybody,I'm not a killer in powershell and i want to retrieve localhostname, current user logged in, and macaddresses of local computer to export all in CSV file.I writed a litle script to do this...

View Article

Powershell cmdlet copyHere zipping issue on first three execution after a...

Hi,Once I execute powershell script on Windows Server 2008 R2 or Windows 2012 R2 which try to zip files using copyHere cmdlet after a reboot, for first 3 execution, it pops up window with error msg -...

View Article

Thread Count

I'm looking for way to monitor thread count on VDS.exeSearching through the commands, I see Get-Process but it does not return the Thread Count.I've got a run away app that increase VDS thread count...

View Article


dns how can we find who & when created a DNS record ?

 dns how can we find who & when created a DNS record ? I know at AD level some audit need to turn on , say its tuned on, so how can we find this info ?thanks

View Article


Need the syntax for c drive free percentage on servers - Using power shell

Hi Friends, I could find some ps script with gui option for server health check. It has its grid view and displays server parameters like uptime, last boottime, Service pack etc. So I was trying to...

View Article

Powershell Kill Background Processes

Hello All,I am trying to kill back ground processes that appear in the task managerkill -processname Google Crash Handlerkill -processname Adobekill -processname b.exe etcI created a power shell file...

View Article

How to get the total size of the files of certain extension and send it to...

People,Can anyone here please assist me in modifying the script below to search all files by certain extension and its size, then send it to my email address ?dir c: *.mp3 -recurseThanks in advance./*...

View Article

Output DNS Duplicates - Include Name, IP, TimeStamp, RecordType

Hi. I came across this powershell script and would like to modify to include TimeStamp + RecordType values.I tried adding additional columns. The column headings output but no values so I guess I did...

View Article


wpf listview column header click sorting

Hi,i need help with sorting of a listview. Is there a way to catch the click event on the column header?So far i only have two workarounds: Adding a button right above each column.Checking the cursor...

View Article

Using if after if in my situation

Hello, guys,I wrote script to get items and remove it older than 180 days. Actually after that, it forms another log file.$CurrentTime = "["+(Get-Date)+"]`t" $directory = "E:\IISLogs\W3SVC1" #type...

View Article


Recurse all items on E drive in remote computers

Hello,Actually i wrote script to gather all computer which i need to continue actions from AD security groups. After that i need recurse all directories in that computers.. But still not E drive found....

View Article

Comparing two arrays

Hi Team,I have two arrays as mentioned belowArray1      Array2John         MikeMark        Paul               Bill               John               MarkI need to compare this two arrays and after...

View Article


Sign Powershell scripts

Hi,i try to sign a powershell script, to run it with ExecutionMode "AllSigned". I have a Commercial code-signing certificate available, which is used by several .NET Developer in my Company.Now i have...

View Article

Powershell Script to change permission of HKCU registry and make it read only...

Hi,Is it possible to change the Permission of the registry hive " HKEY_CURRENT_USER\Software\Canon"  from full control to Read only permission with the help of the Powershell Script.Please advise how...

View Article

IE Proxy Setting for all users instead of Current User

Hello All,I am working on creating a Ps script to check IE Proxy Enable value from registry.The Key that I am checking is this :  HKCU\Software\Microsoft\Windows\CurrentVersion\Internet SettingsI...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>