Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbShare
PresetPathAcl
$acl = Get-Acl ($this.PSBase.CimInstanceProperties['Path'].Value)
$acl.SetSecurityDescriptorSddlForm( $this.PSBase.CimInstanceProperties['SecurityDescriptor'].Value, [System.Security.AccessControl.AccessControlSections]::Access )
$newacl = Get-Acl ($this.PSBase.CimInstanceProperties['Path'].Value)
$newacl.SetSecurityDescriptorSddlForm( $this.PSBase.CimInstanceProperties['SecurityDescriptor'].Value, [System.Security.AccessControl.AccessControlSections]::Access )
$type = [System.Type]::GetType("System.Security.Principal.SecurityIdentifier")
$flag = [System.Security.AccessControl.InheritanceFlags]::ContainerInherit,[System.Security.AccessControl.InheritanceFlags]::ObjectInherit
$rules = $acl.GetAccessRules( $true, $false, $type)
#
# First clear all rules fron $newacl
#
For( $i=0; $i -lt $rules.Count; $i++ )
{
$newacl.PurgeAccessRules( $rules[$i].IdentityReference )
}
#
# Now add the rules back with Container Inheritance and Object Inheritance flags set
#
For( $i=0; $i -lt $rules.Count; $i++ )
{
$modifiedRule = new-object System.Security.AccessControl.FileSystemAccessRule $rules[$i].IdentityReference,$rules[$i].FileSystemRights,$flag,$rules[$i].PropagationFlags,$rules[$i].AccessControlType
$newacl.AddAccessRule( $modifiedRule)
}
$newacl
ShareState
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareState] ($this.PSBase.CimInstanceProperties['ShareState'].Value)
AvailabilityType
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.AvailabilityType] ($this.PSBase.CimInstanceProperties['AvailabilityType'].Value)
ShareType
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareType] ($this.PSBase.CimInstanceProperties['ShareType'].Value)
FolderEnumerationMode
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.FolderEnumerationMode] ($this.PSBase.CimInstanceProperties['FolderEnumerationMode'].Value)
param($newValue)
$this.PSBase.CimInstanceProperties['FolderEnumerationMode'].Value = [System.UInt32] [Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.FolderEnumerationMode] $newValue
CachingMode
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.CachingMode] ($this.PSBase.CimInstanceProperties['CachingMode'].Value)
param($newValue)
$this.PSBase.CimInstanceProperties['CachingMode'].Value = [System.UInt32] [Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.CachingMode] $newValue
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbShare
ShareState
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareState] ($this.PSBase.CimInstanceProperties['ShareState'].Value)
AvailabilityType
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.AvailabilityType] ($this.PSBase.CimInstanceProperties['AvailabilityType'].Value)
ShareType
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareType] ($this.PSBase.CimInstanceProperties['ShareType'].Value)
FolderEnumerationMode
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.FolderEnumerationMode] ($this.PSBase.CimInstanceProperties['FolderEnumerationMode'].Value)
param($newValue)
$this.PSBase.CimInstanceProperties['FolderEnumerationMode'].Value = [System.UInt32] [Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.FolderEnumerationMode] $newValue
CachingMode
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.CachingMode] ($this.PSBase.CimInstanceProperties['CachingMode'].Value)
param($newValue)
$this.PSBase.CimInstanceProperties['CachingMode'].Value = [System.UInt32] [Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.CachingMode] $newValue
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbShareAccessControlEntry
AccessControlType
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareAccessControlType] ($this.PSBase.CimInstanceProperties['AccessControlType'].Value)
AccessRight
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareAccessRight] ($this.PSBase.CimInstanceProperties['AccessRight'].Value)
Microsoft.Management.Infrastructure.CimInstance#root/Microsoft/Windows/SMB/MSFT_SmbShareAccessControlEntry
AccessControlType
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareAccessControlType] ($this.PSBase.CimInstanceProperties['AccessControlType'].Value)
AccessRight
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.ShareAccessRight] ($this.PSBase.CimInstanceProperties['AccessRight'].Value)
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbMapping
Status
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.MappingStatus] ($this.PSBase.CimInstanceProperties['Status'].Value)
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbMapping
Status
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.MappingStatus] ($this.PSBase.CimInstanceProperties['Status'].Value)
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbBandwidthLimit
Category
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.BandwidthLimitCategory] ($this.PSBase.CimInstanceProperties['Category'].Value)
param($newValue)
$this.PSBase.CimInstanceProperties['Category'].Value = [System.UInt32] [Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.BandwidthLimitCategory] $newValue
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbBandwidthLimit
Category
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.BandwidthLimitCategory] ($this.PSBase.CimInstanceProperties['Category'].Value)
param($newValue)
$this.PSBase.CimInstanceProperties['Category'].Value = [System.UInt32] [Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.BandwidthLimitCategory] $newValue
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbSession
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbSession
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbOpenFile
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbOpenFile
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbConnection
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbConnection
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/SMB/MSFT_SmbMultichannelConnection
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)
Microsoft.Management.Infrastructure.CimInstance#MSFT_SmbMultichannelConnection
SmbInstance
[Microsoft.PowerShell.Cmdletization.GeneratedTypes.SmbShare.SmbInstance] ($this.PSBase.CimInstanceProperties['SmbInstance'].Value)