模块: Microsoft.PowerShell.Utility 删除变量及其值。语法PowerShell 复制 Remove-Variable [-Name] <String[]> [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Scope <String>] [-WhatIf] [-Confirm] [<CommonParameters>]说明Remove-Variable cmdlet 将从定义了变量的作用域(例如,当前会话)...
Most of the standard variables can be found inSystem.Management.Automation.SpecialVariables. If you filter out these and a small list of other known variables, you can create a reusable function to get user-defined variables: functionGet-UDVariable { get-variable | where-object {(@("FormatEnum...
Namespace: Microsoft.PowerShell.Commands Assembly: Microsoft.PowerShell.Commands.Utility.dll Package: Microsoft.PowerShell.Commands.Utility v7.4.0 The Remove-Variable cmdlet implementation.C++ 複製 public ref class RemoveVariableCommand sealed : Microsoft::PowerShell::Commands::VariableCommandBase...
Applies To: Windows PowerShell 2.0Deletes a variable and its value.SyntaxCopy Remove-Variable [-Name] <string[]> [-Exclude <string[]>] [-Force] [-Include <string[]>] [-Scope <string>] [-Confirm] [-WhatIf] [<CommonParameters>] Description...
Package: Microsoft.PowerShell.Commands.Utility v7.4.0 If true, the variable is removed even if it is ReadOnly. C++ 複製 public: property System::Management::Automation::SwitchParameter Force { System::Management::Automation::SwitchParameter get(); void set(System::Management::Automation::Switc...
PowerShell Copy Remove-Variable [-Name] <String[]> [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Scope <String>] [-WhatIf] [-Confirm] [<CommonParameters>] Description The Remove-Variable cmdlet deletes a variable and its value from the scope in which it is defined, such...
PowerShell Remove-Variable [-Name][-Include] [-Exclude] [-Force] [-Scope] [-WhatIf] [-Confirm] [] 1. 2. 3. 4. 5. 6. 7. 8. Description The Remove-Variable cmdlet deletes a variable and its value from the scope in which it is defined, such as the current session. You cannot...
Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free ...
Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free ...
Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and disp...