Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

Get-EventLog need help with date and time property.

Hi,I want to know the list of date and times when my pc was last started. I used below command: Get-EventLog -LogName system -Source Microsoft-Windows-Power-Troubleshooter -Newest 10This shows the list...

View Article


Usernames

Idk how to change my username on this website... help? (Yep off topic)

View Article


Form parameters

Hi,I build a form with those parameters: $form.Height=400$form.Width=380$form.Text="Box"$form.FormBorderStyle=1 I know that there is a parameter that can open it on the center : $Form.StartPosition =...

View Article

General rule of outputing to email powershell commands

I run one line powershell commands which work well but i would like to email them on a schedule taskWhat i would like to know is there a general rule on how to transfer data like the examples below...

View Article

Powershell to check the domains in the proxy address

Hello Guys,I am looking for a script that will comapare a file of domains to all the proxy address list of the users in AD and let me know if any users has an additional domain proxy address.Also...

View Article


Delete multiple files from reference file

Hello, I would like to know the command to delete some files from  a particular directory. I have set of files which ends with .xml extension. I made a list of files to be deleted and saved it in a...

View Article

Merge Multiple .TXT files

Hello,I need to merge multiple .txt files into one txt file. Can someone help with a powershell script for that? Also will it be possible to cut off the headers in each of the files and just have one?...

View Article

How to get the currently installed programs list as the same as appwiz.cpl...

Under path "Control Panel\Programs\Programs and Features", here is a list to show the currently installed programs, now I want to get the list with powershell, I tried below two commands, but they...

View Article


richtextbox question

HI when i am trying to copy from excel to the richtexbox. It is copying the tables also.i just want it to get copied as the plain text.Thanks   

View Article


Scripts on the site

I was pointed to a handy script here but it has a copyright in it yet there is a download button. It would seem there's a policy against something like that but I wasn't required to accept any terms....

View Article

Could use a sanity check on this code

Writing a script to inventory our monitors and, due to our organizational structure, I'm not allowed to run it against more than my own computer, so I have no idea if it will actually pull the...

View Article

Getting MobileDeviceStats From O365

Hello,I have a script that I have created to pull a list of all the Mobile devices and their statistics from our Office 365 environment.  When I execute this script manually, it completes without error...

View Article

Particular String Bold in rich text box

$outputBox = New-Object System.Windows.Forms.RichTextBox $outputBox.Location = New-Object System.Drawing.Size(10,250) $outputBox.Size = New-Object System.Drawing.Size(1160,590) $outputBox.MultiLine =...

View Article


Copy-Item not working

      In the following code, for some reason the copy-item event doesn't copy any of the event logs saved on a server.The script is designed to make a copy of a server's event logs to a particular...

View Article

Finding Service Accounts on a Windows server

Hello,Im trying to find the service accts that are not localsystem, NT AUTHORITY\LocalService  or NT AUTHORITY\NetworkServiceHere is what I have so far.Clear-Hostget-content  c:\temp\servers.txt...

View Article


check the admin$ of a machine?

I have a list of machines that I can ping but when I try to connect to them I can't.   I will open up Explorer and enter \\machinename\c$  or \\machinename\admin$  and it can't connect, yet I can ping...

View Article

Aligning / formatting Pictures in word document using power shell

Hi everybodyI am a system admin my work is to monitor CPU memory load usages in serverswe are now working with Nagios , cacti monitoring tools we need to take Report .We need to collect the images from...

View Article


Looping Problems

$NoPing = "Can't Ping Machine"$erroractionpreference = “SilentlyContinue” $a = New-Object -comobject Excel.Application $a.visible = $True$b = $a.Workbooks.Add() $c =...

View Article

HTML Body Extraction

Hi All,Ok... so I got Powershell Studio for Christmas (cause I'm a sad geek lol) and I'm loving it. I wrote a program in it using powershell and .net. After fuzzing the stuffing out of it last night, I...

View Article

Get-acl output to pipe to get-qadgroup

Hi Guys.  Here's my outline of the problem I'm facing... I'm really new to coding.Objective: users inputs share path,  script filtersout inherited groups, shows group names, then pipe those group names...

View Article
Browsing all 6937 articles
Browse latest View live