SecurityDescriptorCmdletProviderIntrinsics.Set(String, ObjectSecurity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the provided SecurityDescriptor at the specified path.
public:
System::Collections::ObjectModel::Collection<System::Management::Automation::PSObject ^> ^ Set(System::String ^ path, System::Security::AccessControl::ObjectSecurity ^ sd);
public System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject> Set (string path, System.Security.AccessControl.ObjectSecurity sd);
member this.Set : string * System.Security.AccessControl.ObjectSecurity -> System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>
Public Function Set (path As String, sd As ObjectSecurity) As Collection(Of PSObject)
Parameters
- path
- String
The path of the item to set. It may be a drive or provider-qualified path and may include glob characters.
The new security descriptor to set.
Returns
The SecurityDescriptor(s) set at the specified path.