We've previously described how to back up and restore site collections, but sometimes we just need to export the content from a site or subweb, and then we'll use these two commands.Export-spweb ExampleExport-spweb Http://web_name-Path web.cmpParameters
Force: Overwrites the existing export file.
Compressionsize: Sets the maximum size of the exported file, if it is exceeded, it will be split into multiple files.
Includeversions: Sets the type of file and list item version history that
Use Python to debug simple programs directly from the command line.WIN10 (PowerShell) Without tab completion, the operation is really troublesome.Online search learned, record, review with, hahahaEnvironment: WIN10 64-bit Python2,python3One: Install the Pyreadline modulePip Install Pyreadline # python2pip3 install Pyreadline # Python3Ii. Preparation of tab.pyFile saved in: \python2\lib\tab.py例如:D:\Program F
Posted by Jianpeng Mo/january 20, 2014Monitoring and maintaining large-scale, complex, highly distributed and interconnected systems can be extremely challengin g for network administrators. Traditional IT management approaches is ill-equipped to handle the complexity of today ' s application architectures and DE ployment environments. It's common that's IT admin would support hundreds of machines in a enterprise network daily but have to physically r Un-to-individually in order to issue a simpl
Today boss let me output a simple report, need to list all the users in Sydney except the system account, including their name, phone, landline, the OU, company and so on information.This basic command is very simple, get-aduser can be achieved, a few filter conditions a little thought about a bit.
All Sydney users can use-searchbase to limit the scope of the Search OU;
Exclude the System account, because all the system accounts are locat
Get-spwebGets the specified subsite.Parameters
Identity: Specifies the address of the subsite.
Limit: Limits the maximum number of subsites to return, the default value is 200; To return to all sites, enter all.
Site: Specifies the address or GUID of the site collection that gets the subsite.
ExampleGet-spweb-site http://sitename/sites/site1Set-spwebSets the specified subsite.Parameters
Identity: The subsite address or object that needs to be set.
Name: Set the names of the
Open the SharePoint Management Shell, and then run as Administrator. Execute the following command1. Adding WSP and InstallationAdd-spsolution-literalpath "C:\DEPLOYRESOURCE\WSP\TEST.WSP"Install-spsolution-identity "test.wsp"-webapplication "http://domain:port/"-gacdeployment-forceRemove-webapplication "http://domain:port/" if it is a resource-free installation2. Update wsp: update-spsolution-identity splistupdatead.wsp-literalpath "D:\BackupOfBackup\Release_20141010\ WSP\SPLISTUPDATEAD.WSP "-ga
Remember how to create objects dynamically in PowerShell? Today to share the method dare not boast tall, but also enough to let New-object feel ashamed.
BackgroundThere is a management Pack, called "Microsoft.SystemCenter.OperationsManager.SummaryDashboard", in System Center Operation Manager. In this MP, there is a discovery called "Collect agent Configurations". A script is used in the workflow that uses the New-module
configuration file format example is as follows:Where server fills the address of the remote server,service display name needs to stop the Windows service display name before the file is filled, process name fills in the names of the processes that need to be stopped, Item is the file or folder to be copied, the above parameters can have multiple nodes.Last Write time stamp, all the modified time after the folder and files will be copied, only one.Destination The folder path of the destination
Background: Setting up the PowerShell buffer with the command line largeIf the screen buffer is too small (height and width), the information is not displayed exactly after the command is executed, even if the output to text will have some information ... Instead, this is inconvenient, so you need to modify the size of the screen buffer. Here's how to modify the
PowerShellThe first use of CMD, configuration alias is very difficult to see, uncomfortable, and no configuration files, but also into the registry, as well as such a problem.Just try PowerShell, very good very strong.According to: http://marui.blog.51cto.com/1034148/290067/configuration,Open configuration file# svnfunction Svn-status {SVN status}set-alias-name sst-value svn-statusBecause the direct Set-alias SST SVN status does not work, so put in th
This article describes how to delete a file in PowerShell. In DOS, you can use del command, Linux also has RM command, and in PowerShell use Remove-item This cmdlet can be a word easy to handle!
In PowerShell, the cmdlet that deletes the file is Remove-item. Remove-item Thi
Beans have always been a misunderstanding, always think of PowerShell remote operation, if a command comes with-computername parameters, then use him well, this comes with the positive efficiency than I use Invoke-command remote call strong. Today, no intention to turn over the textbook, only to find this understanding is wrong! I've written a 1-year script with
In previous techniques you can observe the use of "-erroraction stop" combined with "exception capture command" To catch a PowerShell command error, but after using this mode of operation, the script will stop after the first error occurs.
Here's an example: Use PowerShell to scan a folder recursively. It will not be
The Web page is created first:Virtual Cloud Service (ServiceName): Zampdmp-dsVirtual Network (vnetname): az-dmpnetworkTo create a new DS13, the attachment 800G Disk PowerShell command is as follows:New-azurestorageaccount-storageaccountname "Zampdmpds"-location "China East"-type "Premium_lrs"Set-azuresubscription-subscriptionid 6fd78691-51f4-4087-a821-f******-currentstorageaccountname Zampdmpds$VMImage = Ge
These two commands are probably the first PowerShell commands that everyone touches, one is to back up the site collection and the other is to restore the site collection.Backup-spsite ExampleBackup-spsite Http://site_name-Path C:\Backup\site_name.bakParameters
Force: Overwrite existing backup
Nositelock: Sets whether the site collection can read and write when the backup is set. If this parameter is not specified, the site collection is set t
........:fe80:: a438:a0ec:e477:94c6%12
IPv4 Address ...: 192.168.1.102
Subnet Mask ............:---- 255.255.255.0 the
default gateway ... ...: 192.168.1.1 ........
(Other network adapters are omitted here)
We want to see the IP address of the native configuration, so just look at the line that starts with IPV4. Then we can simply use "IPv4" as a matching keyword. So the PowerShell command ca
ExampleUninstall-spsolution-identity solution.wspParameters
Allwebapplications: Uninstalls the solution package from all Web applications in the farm.
WebApplication: Uninstalls the solution package from the specified Web application collection.
Time: The uninstall solution package is recycled at the specified times, and the default is to recycle the uninstallation immediately.
Note the command simply reclaims the deployed solut
Tip: Because the uninstall is random software, before the operation, be sure to back up your important files, to avoid the failure of the system to cause the crash and data loss.
Find PowerShell in the Start menu, right-click, select "Run as Administrator", and then enter the appropriate command.
OneNote:
Get-appxpackage *onenote* | Remove-appxpackage
The following:Get-
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.