show activity of my script
hi all,I'm new to PowerShell and also new here, this is my first question! :-)I'm learning PowerShell and my first project is to make a script that will remove some files on computers to free some disk...
View ArticleConvert Hard Drive Results to a HTML report and send it in email
$a = "<style>"$a = $a + "TABLE{border-width: 1px;border-style: solid;border-color:black;}"$a = $a + "Table{background-color:#DFFFFF;border-collapse: collapse;}"$a = $a +...
View Articlesending emails from within a script
I have this code which works. $Outlook=New-Object-ComObjectOutlook.Application$Mail=$Outlook.CreateItem(0)$Mail.To="MyEMailAddress@Acme.org"$Mail.From="ITinsider@Acme.Org"$Mail.Subject="IT...
View ArticleConvert MAC Vendor OUI file from public GitHub to proper format
Hello experts. I think one of you may have this script laying around somewhere so I thought I would ask. I am downloading a copy of oui.txt from the IEEE. The file format seems quirky in spots....
View ArticleDeleting files with same filename but different extension
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 I am new to PS scripting and would like to do the following: I take RAW+JPEG images and put them into...
View ArticleScript output to HTML
Hi everyone , hoping someone can offer me some advice.I have the following script , and I am struggling to get the results output to HTML. Could some one show me the changes \ best practises to get the...
View ArticleNeed to speed up loading PowerShell modules to run my script sooner
Hi,As a newbie, I wrote a short script to run it every time Windows (8.1) starts up. I put it under the "Startup Script" section in 'Group Policy Editor' and in its COMPUTER CONFIGURATION\WINDOWS...
View ArticleVariable not staying stored
Trying to figure out why a variable I'm declaring is not being used. I'm wondering if there is some behavior that I'm not aware of and hoping some can enlighten me. In the beginning of my script, I'm...
View ArticleHow to consolidate multiple Format-Tables into One table
Hi,Here's my code which does run successfully...[System.Reflection.Assembly]::LoadWithPartialName "Microsoft.SqlServer.Smo") | Out-Null$SQLConn =New-Object...
View ArticleHyphens Report
I'm trying to write a cmdlets that will shows all the user names with the Hyphen in them in my organization.
View ArticleHow to open new version of excel (using 2003 and 2010) in Powershell and...
Hello,I use the code below to import txt file into excel. The problem is that I use 2 versions of Office (2003 and 2010).The command $Excel = New-Object -ComObject excel.application opens Excel 2003I...
View ArticleMicrosoft Changing Mailbox Restore Method for Exchange Online
Microsoft added another recovery method that IT pros can try when they need to restore accidentally deleted Exchange Online mailboxes.Read More
View ArticleTotal mail items for a user sorted by year
Hi guys. I'm fairly new to exchange powershell and need some help. We have a journaling mailbox setup in exchange 2007 and this is meant to have been cleared out every month with the existing monthly...
View ArticleRegistering scheduled task on remote machine
I have an xml file based on which I'm trying to create a scheduled task. I copied the file onto a remote host.For the task to be created locally I runRegister-ScheduledTask -xml (Get-Content...
View ArticleNeed script to query identity of KVM switches with web UI
Hello, I am trying to enumerate 1800+ KVM switches to determine what they are. My problem is they use self-signed SSL certs. I have all the IP addresses for them and I know the login urls. However,...
View ArticleApplying Office 365 exchange policies
Hi TeamNeed help for applying Office 365 Exchange policies for Active directory users.Information about commands and options available. Regards
View ArticleStringPadding not working?
I doubt it isn't working. It must be me understanding it wrong .I searched on the net but I could'nt find what I'm looking for.Let me explain what I want to achieve:I want to have a function that...
View Articlevariable self referance
Hello everyone,I am trying to figure out why and when I would need to use variable self reference. Can't seem to find anything in google and hoping someone could explain it to or point me to really...
View Articleproblem adding printers remotely with Add-printer
I am trying to add printers remotely with Add-Printer. When I use the command locally it works, but when I try to run it remotely it says the server or printer name is invalid. add-printer...
View ArticlePowershell IS for the desktop tech as well
Every day some one tends to ask me if there is a simpler way to do task A or B, and the minute I mention PowerShell the response is almost always the same, “yea i have been meaning to learn that...
View Article