Loading....

Category: Uncategorized

Using PowerShell to get Share and NTFS permissions

I am teaching a class this week at Benchmark Learning and had a great student question. “How do I get share permissions AND NTFS permissions” Well, look no further. The Get-SharePermission function was found here: http://social.technet.microsoft.com/Forums/en-ZA/ITCG/thread/64cabd85-7170-4678-96b5-2c516cc3b772 function Get-SharePermission { Param($Server = $env:COMPUTERNAME) $ShareSecurity = Get-WmiObject win32_LogicalShareSecuritySetting -ComputerName $Server foreach($Share in $ShareSecurity) { $sharenames = $Share.Name […]

Read More..

PowerShell and rounding. Math is hard!

I had a student question regarding a function he wrote.  The function basically displayed disk info (disk size, free disk space and percent free), but we couldn’t get it to round the numbers.  In this first example, the numbers are not rounded: Function Get-DiskInfo { param ($System =”.”) $display = @{Label = “Drive” ; Expression={$_.DeviceID}},` […]

Read More..

MMS 2011– Converting Existing Software Packages into the ConfigMgr 2012 Application Model

2012 App Model Virtual containers that contain end user metadata and administrator properties Deployment Types App-V Scripts MSI Mobile Cab Requirement rules platform hardware requirements Utilizes DCM to determine applicability Dependencies What other applications are required in order to install detection method How to identify if the application is present can be product code, file […]

Read More..
Top