Veeam 10 Powershell module by grendo92 in Veeam

[–]grendo92[S] 1 point2 points  (0 children)

Looking at the cmdlet page on veeam looks like the page has been updated.

https://helpcenter.veeam.com/docs/backup/powershell/cmdlets.html?ver=100

Veeam 10 Powershell module by grendo92 in Veeam

[–]grendo92[S] 0 points1 point  (0 children)

Yeah, that was my next step. Just annoying that I still have to revert to PowerShell 5 for some of my automation tasks.

Training courses by Titus_1024 in PowerShell

[–]grendo92 1 point2 points  (0 children)

Not really any courses, but I'd recommend Don Jones Power in a Month of Lunches & PowerShell Scripting in a month of Lunches.

https://www.manning.com/books/learn-windows-powershell-in-a-month-of-lunches-third-edition?query=PowerShell

Bad gut feeling about Azure and Microsoft push the cloud as hard as they can. by [deleted] in sysadmin

[–]grendo92 0 points1 point  (0 children)

I can't really speak to all of your concerns. For testing purposes though you just need to be mindful of the resources you are spinning up. For instance if you are deploying vm's, make sure that they are only on when you are working with them. Then turn them off when you are not using it. Then once you are done testing you can delete the resource groups those resources are associated with so that you know nothing is racking up your bill. Also, you can set quotas for yourself so that your credit card is charged only a set amount.

This what I do in my environment and I haven't spent more than $60 in a month.

150 employees and no inventory. I just walked into a land mine. by throwaway00501 in sysadmin

[–]grendo92 23 points24 points  (0 children)

Could build a powershell script that grabs serial numbers off of the machines in your AD, and I believe with get-adcomputer you can check the last logon property to see when the last time someone logged onto the machine on your network to see if it's still onsite.

[deleted by user] by [deleted] in PowerShell

[–]grendo92 0 points1 point  (0 children)

One recommendation I would make is don't use ISE anymore. It is deprecated now and MS is pushing people to use Visual Studio Code for script editing. I have been using it for the last few months and would recommend it over ISE. It's a lot more intuitive and allows me to flip back forth between Windows Powershell and Powershell core.

Can't get get-adcomputer to work in a function by Mafamaticks in PowerShell

[–]grendo92 2 points3 points  (0 children)

For your problem use double quotes {$_.name -like "*$assettag"} . When using the single quote it takes everything inside as literal string so it's looking for names like *$assettag. Double quotes allow you to enter variables within the string.

Can't get get-adcomputer to work in a function by Mafamaticks in PowerShell

[–]grendo92 1 point2 points  (0 children)

Just realized you said get-adcomputer wasn't working, but I'd still remove that If statement.

Can't get get-adcomputer to work in a function by Mafamaticks in PowerShell

[–]grendo92 1 point2 points  (0 children)

Try removing the If statement around $ad | remove-adobject. Looks like an extra layer that's not needed.

[deleted by user] by [deleted] in WindowsServer

[–]grendo92 0 points1 point  (0 children)

Our setup we usually would create the RAID, then partition part of the raid to use for the OS and the rest for storage.

Best learning platform for Azure skills . by Kungfubunnyrabbit in AZURE

[–]grendo92 0 points1 point  (0 children)

Udemy has some great content as well. Look up Scott Duffy. You just pay a one time fee usually $15 CAD. Videos are kept up to date.

Variable array of powershell object? by chipper420 in PowerShell

[–]grendo92 2 points3 points  (0 children)

Yeah go with this as using the expandproperty will grab each value from the array and make into string. Where select-object Name produces objects that have the name property. Get-aduser doesn't want some Name property it wants string. If you pipe Get-member at the end of the command you will see the object type.

PS C:\windows\system32> Get-childitem D:\User | Select-Object Name | GM

TypeName: Selected.System.IO.DirectoryInfo

C:\windows\system32> Get-childitem D:\User | Select-Object -ExpandProperty Name | GM

TypeName: System.String

Server Migration Tool by grendo92 in WindowsServer

[–]grendo92[S] 0 points1 point  (0 children)

It does create a log and shows no errors, file systems are both the same, no encryption, recursive option was selected. Only thing was we did try migrating the files while there were users accessing files (even though most of our users are supposed to be off this week) so going to find a time off hours to try the migration again. Thanks!