Required Powershell command to gather all vm names with snapshot created on them.
Required Powershell command to gather all vm names with snapshot created on them.
ADS/DNS/DHCP/RIS/GROUP POLICY/PowerShell/VMware/Esxi/Storage.
Required Powershell command to gather all vm names with snapshot created on them.
It is not related to Active Directory, more like it is a virtualization question and PowerShell. But I beleive this could help for VMWare:
Get-VM | Get-snapshot | FT VM,Name
Or refer to these articles:
Get a List of Virtual Machines by Using PowerShell
Using PowerShell to get a list Virtual Machine
Snapshots in VMware ESXi 4.1
Mahdi Tehrani |
|
www.mahditehrani.ir
Please click on Propose As Answer or to mark this post as
and helpful for other people.
This posting is provided AS-IS with no warranties, and confers no rights.
How to query members of 'Local Administrators' group in all computers?
Similar Messages
-
Get-InboxRule Powershell Command To Display all Rules
Hello,
I am in need a powershell command that display all InboxRules per mailbox database. I want to export the information to a CSV and show DisplayName,IsValid,Name,From,RedirectTo as the the column names.
I found this great article below but I have been unable to pull additional information like the DisplayName.
http://blogs.msdn.com/b/canberrapfe/archive/2012/11/05/ever-needed-to-find-server-side-outlook-rules-that-forward-mail-outside-of-your-organisation.aspx
Any assistance would be greatly appreciated.
This is what I have been working with so far.
Get-MailboxDatabase -Identity 'db-f' | Get-Mailbox -ResultSize unlimited | Get-InboxRule -ErrorAction:SilentlyContinue | Select-Object
DisplayName, isvalid, @{Name="Forward To";Expression={[string]::join(";",($_.ForwardTo))}} | Export-Csv filename.csv
JasonFrom the output you are selecting, it appears you are trying to pull rules that forward items to other recipients. If this is the case, there is no value "DisplayName" returned by the Get-InboxRule command, so what you're going to need
to do is put bits of information together into the data you want. Try the following and see if it gives you something workable:
$MbxDbs = Get-MailboxDatabase
$MbxDbs | % {
$DbName = $_.Name
$DbMbxs = Get-Mailbox -Database $DbName
$DbMbxs | % {
$MbxName = $_.Name
Get-InboxRule -Mailbox $MbxName
} | Select @{E={ $DbName };L='Database'}, @{E={ $MbxName };L='DisplayName'}, $IsValid, `
@{Name="ForwardTo";Expression={[string]::join(";",($_.ForwardTo))}}
} | Export-Csv filename.csv
In addition to the mailbox display name, I've written this to run through all databases, and added the database to the information returned, to show how you might pull other info into your CSV. Notice from the Get-InboxRule output (Get-InboxRule
| Get-Member) that there is also a MailboxOwnerId property, which holds the ADObjectID of the account owning the mailbox. However, this is the DN of the account, which isn't as clean and readable as the mailbox's DisplayName property,
which the above returns in the $MbxName = $_.Name line of code.
If I'm barking up the wrong tree here, feel free to let me know. -
Powershell to export all vm's on the vcenter with snapshot created.
Hi,
I have Commvault backup server taking snapshots of 100's of production server and backup server leaving some of the server
snapshot unconsolidated after taking a back,
So my question or requirement is I need to pull all server with their snapshot or I need PS command to pull the names of the vm with snapshot created by backup server.
Regards
Basavaraj.R Navalgund
[email protected]
ADS/DNS/DHCP/RIS/GROUP POLICY/PowerShell/VMware/Esxi/Storage.Start by reading the following:
Posting guidelines
Handy tips for posting to this forum
How to ask questions in a technical forum
Rubber duck problem solving
How to write a bad forum post
Help Vampires: A Spotter's Guide
-- Bill Stewart [Bill_Stewart] -
Need powershell commands to get email addresses from public folder created in EAC to CSV
Need powershell commands to get email addresses from public folder created in EAC to CSV
1. Created Public folders via EAC - not mail enabled - just to hold contacts.
2. Assigned owners and showed to add new contacts - then add to favorites and finally to display as address book.
Now I need a powershell command to get those email contacts in those public folders.
I need to view them because when we send emails to those groups (via select all) in the public folders, it is creating an NDR for 3 users saying - "..blah blah -OFFICE FAX or HOME FAX) - yet they are getting the emails.
I suspect that their contact details are corrupt somehow and want to see what contacts are actually listed in the public folders. I already checked to see if the source of the contacts was the public folder or "my contacts" and they are not.'
I have tried multiple get recipient commands and get public folder commands with no results in the CSVThe only way to get that data is either via the Outlook com object or using EWS. None of the commands in the Exchange shell look inside of a folder, the most you can get with those is email addresses for mail-enabled Public folders. Here is a link that can
get you started with how to connect to public folders via EWS, then its just enumerating the folders and looping through the items in the folders for the details of the items.
http://gsexdev.blogspot.com/2013/08/public-folder-ews-how-to-rollup-part-1.html
DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com -
Hello, I have deleted my hotmail account and it deleted all the names with my contacts. Is there anyway this can be fixed?
Yeah, add the Hotmail mail account back to the device. It sounds like your missing contacts were synced to your Hotmail account.
-
Help! I need a simple powershell command to display all folders & files over the 260 char limit
Can anyone help me please? I'm trying in vain to identify any files or folders I have in a directory over the 260 char limit.
my powershell knowledge is quite limited so I've hit the wall with ideas.
Any help appreciated.
ThanksWould running this command on its own within powershell work?
Or do I need to add this to your script?
get-folderitem | Where {
$_.fullname.length -gt 260 -
I'm trying to migrate my music and pictures over to my new iMac. When I use the migration assistant it connects to my PC fine but it won't let me use the account name and username that I have created as the admin. It requires me to create a new user account - so then I have two separate accounts to log in to which i don't want. How do I get it to let me use the current account that I have to move my files to?
Thanks!Migration Assistant creates a new account and migrates all the information you have requested to that new account. There is no way around that. However once migrated you can move the data to the account you want to. Here are some instructions for doing so:
Transferring files from one User Account to another. -
Powershell script to get all user profiles with specific email address
Hello,
Please help me. I need a powershell script which can do the following things.
List of all sharepoint user profiles with email address
[email protected]
List of all FBA user profiles with email address [email protected]
List of all Pending Access Requests
Any help is much appreciated. Thanks.
chiragThe script is not working for me. I changed the url according to my site. See the below error
New-Object : Exception calling ".ctor" with "1" argument(s):
"UserProfileApplicationNotAvailableException_Logging ::
UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does
not have 3f3a5705-0691-4fe8-8643-cccd65363dc9"
At C:\Scripts\userprofileemails.ps1:11 char:19
+ $profileManager = New-Object
Microsoft.Office.Server.UserProfiles.UserProfileMan ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvoca
tionException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power
Shell.Commands.NewObjectCommand
You cannot call a method on a null-valued expression.
At C:\Scripts\userprofileemails.ps1:12 char:1
+ $profiles = $profileManager.GetEnumerator()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Please guide me what to do on this.
Thanks
chirag -
Mavericks won't accept 'change all' command to open ALL pages files with v 4.3 app
Hello again,
I upgraded my MacBook Air mid June 2013 build to Mavericks at my Apple store. The download was fast, under 30 min., and the installation went well, also fast at about 40 minutes. All apps are working fine. I spent much time before taking the plunge to learn the pros and cons of this upgrade, and the biggest issue for me was the ability to keep using the older versions of Pages and Numbers. The new, watered down versions cannot do what I need. I followed the instructions to select a Pages file in Finder, open the Info pane, and under 'Open with' selected the old version. Then, to apply this to ALL the files, I selected 'Change all...' and 'Continue'. But, it still lists the new version as default. So far, the only fix is to go through ALL my files and manually choose the old version for each. Very laborious. Am I missing something? It seems Mavericks will not accept to change them all for some reason.
Thank you, CinillaI have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
Today I discovered a new treasure of doggie poop in Lion. No Save As......
I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
I am starting to believe that Apple is Satan. -
AS 3:calling all instance names with similarities
As the title suggests I am looking to RegExp as a means to
find similiarities between diffferent movieclip instance names. I
have many clips that have an instance name that begins with "step"
that reside on the maintimeline. The logic written out should be:
If a movielcip exists on the timeline, whats its name, does
it have this string within its instance name, if so do this.
Unfortunately my code does not accomplish this quite
yet.I'd think this would be the same in 3, but in 2 you'd use
array access
notation like so:
var myIndex = 3;
this["step_" + myIndex].moveUp();
this would call moveUp within step_3. You can interate
myIndex in a loop, of
course, to call the function in a group all at one time.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Hello none of my message on skype are going through there all still turning with a circle on them
hi i ma having issues my skype message are not going through there still loading with a circle like sending still
Hi, ruthtomas, and welcome to the Community, Are you referring to instant messages or text messages (SMS)? With more information from you, we can arrange to transfer your post to the message board best suited to the problem you are experiencing.
Please post back with the following information:
- Hardware use (laptop/phone/tablet brand and model)
- Operating system (version and updates installed)
- Skype version used
- Internet connection used- The text of any error messages, or to confirm the only thing you see is a spinning wheel or circle when you try to send the message (again, instant message or text message?)
Thanks in advance.
- Skype Community Moderation Team -
What is the powershell command to get the user count in Active Directory
What is the powershell command to get the user count in Active Directory
Get-ADuser
REF: http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/30/powertip-single-line-powershell-command-to-list-all-users-in-an-ou.aspx
This post is provided AS IS with no warranties or guarantees, and confers no rights.
~~~
Questo post non fornisce garanzie e non conferisce diritti -
Hello everyone
I have a COM Object that want to use it in my management pack. When I write the powershell command "new-object -comObject ... " to create it outside of MP and in a ps1 file it works without any error. However when I write it in my MP, this
error is showed in event viewer: "Retrieving the COM class factory for component with CLSID {clsID} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))."
I have to mention that when I use vb script in my MP and using "CreateObject()", I don't have any problem.
How can I use "new-object -comObject ... " in my management pack?
thank you all
AlirezaHi Marthijn,
Actually I don't have any problem with powershell in my management packs. For example I can use "MOM.ScriptAPI"
to create $oBag and return it to next module. My problem is only with that custom COM object. Interesting thing is that, it
works fine when I create it in powershell file outside of MP, but when I create it in my MP, that error occures.
thank you so much
Alireza -
Hi All. I am currently at the later stage of provisioning a new CCR Exchange 2007 migration (to
virtualise old Exchange 2007 hardware) for 5,000 users & have a quick question.
I have created around 15 newly named storage groups, & have named 1 new DB per group, with the same name (let's say New-DB-1), residing within them. The problem I have, is the old legacy DB's have different names (let's say Old-DB-1) & I need
to import them into the new storage groups, to match the new names. So far I can import/export between old & new OK if both old & new DB names\folders etc. names marry up perfectly, but are unable to if there not the same. Does anyone have any thoughts
on how best to tackle this, as this is one of the final hurdles stopping the migration? Many Thanks, JohnHi All
Many Thanks for the feedback.
The terminology 'migrate' was used based around the fact I will be decommissioning the old 2007 physical environment. This is after moving all DB's over to the new newly created Virtual environment that will host all roles.
The solution I ended up using yesterday, was the following:
1) Dismounted the relevant named DB (NEWDB) in the new environment.
2) I then ticked the 'This database can be overwritten by a restore option' box.
3) Copied over the old named DB (OLDDB) to the same location, & overwrote using the new name (NEWDB).
4) Re-mounted the (NEWDB).
5) Ran the following 2 PowerShell commands:
Get-mailbox –database OLDDB | move-mailbox –targetdatabase NEWDB -configurationonly:$true
Get-MailboxDatabase NEWDB | ResetSearchIndex.ps1 -force
6) Checked to make sure the clients were working ok, in the now the new (NEWDB) environment.
Rich: Many thanks for your PS script, which I will test with future DB moves & provide feedback
J
John. -
Hi All,
TotalVHDCapacity attribute is returning zero in "Get-SCVMTemplate | select Name, TotalVhdCapacity" powershell command though the template has Vhd capacity is 20 gb in size, vmm 2012 r2. I can create VM using this template too.
For other templates it is returning correct value though.
Can anyone help us understanding the root cause and the solution too.
Thanks in advance.
DebabrataI booted this drive from another computer (Asrock M3A770DE mobo) and works fine, speed with dd was ~100MB/s
I also update bios on my first computer with Intel D945GSEJT (there is selected AHCI mode) still the same transfers with dd (~10Mb/s)
I have no idea what to do with it now
EDIT:
More tests with other hdd (Samsung HD502IJ), dd on mounted NTFS partition:
Intel D945GSEJT booted from Archlinux iso:
hdparm: ~75 MB/s
dd: ~10 MB/s
Intel D945GSEJT booted from Archlinux iso, HDD connected to PCI SATA controller (Promise 378):
hdparm: ~60 MB/s
dd: ~10 MB/s
Asrock M3A770DE booted from Archlinux iso:
hdparm: ~87 MB/s
dd: ~76 MB/s
Asrock M3A770DE booted from Archlinux iso, HDD connected to PCI SATA controller (Promise 378):
hdparm: ~81MB/s
dd: ~76 MB/s
What is broken on D945GSEJT?
Last edited by miskoala (2012-03-30 13:47:23)
Maybe you are looking for
-
all downloads are set to go to downloads file-- PDFs have quit going there and are in temp folder instead-- all other downloads are still going to the right place
-
How to relate Customer UOM with SAP UOM
Hi SAP Gurus I wanted to to relate Non-SAP customer's UOM with our SAP UOM. For example: Customer1 has PAK mean PAC (in SAP) Customer2 has PAB means PAC (in SAP) How to do that? Thanks for your inputs... Edited by: Harpal Singh on Mar 30, 2010 10:34
-
@@ServerName returns wrong value in SQL SERVER 2008
One of my production server configured as Mirror server. When i run @@ServerName query on Principal server i got right server name. but when i execute same query on mirror server it returns Principal server name. I have windows server 2008. I don't k
-
Error in running the WD application.
Hi experts , I am getting an error when running an webdynpro application i.e URL : http://sapserver:8006/sap/bc/webdynpro/sap/zwd_spo_sr?sap-system-login-basic_auth=X&sap-client=800&sap-language=EN Error : Die URL enthält keine vollständige Domainang
-
Error when trying to save still image from video with Quicktime Pro
I just purchased Quicktime Pro so that I can use it with my new Nano (the one that shoots video). I want to grab a frame from the video and create a still image (in jpeg format). I should be able to do it, but when I try, I get an error 11005 (or som