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.
Thanks
Would 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
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. -
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? -
Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory
Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it.
Alex D
Applications Engineer
National Instruments -
My BB9810 refuse to load OS7.1 software on my phone after the download has completed. My phone has freezed/stucked since morning. Pls urgent help/assistant needed as I can not access/use my phone for over 24hrs now.
Hi there,
Use the method described in the link below to get back up and running:
http://supportforums.blackberry.com/t5/Device-software-for-BlackBerry/How-To-Reload-Your-Operating-S...
I hope this info helps!
If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
If your issue is resolved, don't forget to click the Solution button on the resolution! -
Hello
I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )
I have a script where I copy from my local server ( server1) to the remote server ( server2 ), but I can´t not make script that will copy from the remote server to my local by my session. From server2 to server1
Script is as below ...:-)
HELP : ....
winrm s winrm/config/client '@{TrustedHosts="SERVER2"}'
$Source = "D:\test\ok.log"
$Destination = "D:\test\ok.log"
$session = New-PSSession -ComputerName SERVER2
Set-StrictMode -Version Latest
## Get the source file, and then get its content
$sourcePath = (Resolve-Path $source).Path
$sourceBytes = [IO.File]::ReadAllBytes($sourcePath)
$streamChunks = @()
## Now break it into chunks to stream
Write-Progress -Activity "Sending $Source" -Status "Preparing file"
$streamSize = 1MB
for($position = 0; $position -lt $sourceBytes.Length;
$position += $streamSize)
$remaining = $sourceBytes.Length - $position
$remaining = [Math]::Min($remaining, $streamSize)
$nextChunk = New-Object byte[] $remaining
[Array]::Copy($sourcebytes, $position, $nextChunk, 0, $remaining)
$streamChunks += ,$nextChunk
$remoteScript = {
param($destination, $length)
## Convert the destination path to a full filesytem path (to support
## relative paths)
$Destination = $executionContext.SessionState.`
Path.GetUnresolvedProviderPathFromPSPath($Destination)
## Create a new array to hold the file content
$destBytes = New-Object byte[] $length
$position = 0
## Go through the input, and fill in the new array of file content
foreach($chunk in $input)
Write-Progress -Activity "Writing $Destination" `
-Status "Sending file" `
-PercentComplete ($position / $length * 100)
[GC]::Collect()
[Array]::Copy($chunk, 0, $destBytes, $position, $chunk.Length)
$position += $chunk.Length
## Write the content to the new file
[IO.File]::WriteAllBytes($destination, $destBytes)
## Show the result
Get-Item $destination
[GC]::Collect()
## Stream the chunks into the remote script
$streamChunks | Invoke-Command -Session $session $remoteScript `
-ArgumentList $destination,$sourceBytes.Length
Remove-PSSession -Session $sessionBut have will the script look, if i need to copy from
From server2 to server1.
My script copy from server1 to server2 and working, but I need server2
to server1. -
Which Get command will display all $True & $False parameters
Hi,
I am a newbie when it comes to commands in the EMC. We have Exchange 2010. I have 2 mailboxes that should do the same thing but they do not. Both are calendar mailboxes (resource mailboxes I think maybe) and one mailbox is working correctly
and the other is not.
I would like to go into the EMC and run some commands to compare the settings of both mailboxes. However if I run the Get-Mailbox command I only get one line of info back. (I am not actually sure what the correct Get-Mailbox??? command is at this time,
I have that on my work computer).
I would like to know what Get-Mailbox command will display all of the $True and all of the $False parameters. I have seen these displayed on websites while trying to troubleshoot this issue, but I haven't seem the command posted that returns all of
this information, I need that command!
I hope I made sense, I can explain further if needed. Thanks in advance!What is the command that will output this...
RunspaceId : aa671879-75ca-4961-a103-4dcd35254689
AutomateProcessing : AutoAccept
AllowConflicts : False
BookingWindowInDays : 180
MaximumDurationInMinutes : 1440
AllowRecurringMeetings : True
EnforceSchedulingHorizon : True
ScheduleOnlyDuringWorkHours : False
ConflictPercentageAllowed : 0
MaximumConflictInstances : 0
ForwardRequestsToDelegates : True
DeleteAttachments : True
DeleteComments : True
RemovePrivateProperty : True
DeleteSubject : True
AddOrganizerToSubject : True
DeleteNonCalendarItems : True
TentativePendingApproval : True
EnableResponseDetails : True
OrganizerInfo : True
ResourceDelegates : {}
RequestOutOfPolicy : {}
AllRequestOutOfPolicy : False
BookInPolicy : {}
AllBookInPolicy : True
RequestInPolicy : {}
AllRequestInPolicy : False
AddAdditionalResponse : False
AdditionalResponse :
RemoveOldMeetingMessages : True
AddNewRequestsTentatively : False
ProcessExternalMeetingMessages : True
RemoveForwardedMeetingNotifications : False
MailboxOwnerId : offwire.com/Offwire Users/Exchange/Exchange Resources/Resource - K2
Identity : offwire.com/Offwire Users/Exchange/Exchange Resources/Resource - K2
IsValid : True
I ran the command you mentioned above (thank you!) and it gave back a lot of info that I am going to go through right now. But I was wondering what the command would be to output this data? -
I DELETED ALL MY THE FILES ON THE "ALL MY FILES IN THE FINDER BY MISTAKE. PLEASE I WILL BE HAPPY IF YOU CAN HELP ME LOCATE THEM. THANK YOU.
They should still be in the Trash. Click on the Trash icon in the Dock and drag and drop all your deleted items to the Desktop. You'll just have to tidy them away in your own time.
-
I have the new iPhone 4s. I'm using cloud. I try to sync my playlists to my phone an it either erases them completely or keeps saying it cannot move all music files over? Please help. Also my purchased ringtones will not sync up as well.
iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup?
-
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. -
Please forgive my ignorance here, as I'm a Windows expert but have only been using Mac for two and a half years. Is it possible to securely access predefined directories on my iMac from a remote computer or device over the inernet, be it a MacBook Pro, iPhone or even a Windows computer or Android phone? Is there an advantage to an Apple-only approach (iPhone and Macs)? Do I need to use Server? Is VPN the method of choice, or is there some other method? I'm not looking to do remote desktop control, just remote file access. Right now I'm using DropBox for the things I need most, but I absolutely will not put sensitive information in there, and soon I will need to have access to more than what DropBox can hold. Also it may be worth noting that I'm currently an Android user but will be going back to iPhone soon if it would be advantageous in this regard.
Thanks!
DanielIf you desire security, you definately want to use VPN so Lion Server will work. Otherwise, if you have sysadmin experience (or know someone who does), there are free alternatives out there for vpn that can be setup on a cheap linux server and provide the same capabilities.
-
HELP urgently needed .. super stressed what does this all mean
This is the message I got on my mac as I fired it up today
Anonymous UUID: C7584B6B-6E1F-F57F-D74B-F10F84EA1B54
Tue Jun 3 20:18:23 2014
panic(cpu 3 caller 0xffffff802f2dbf5e): Kernel trap at 0xffffff802f67579b, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000028, CR3: 0x000000003198e000, CR4: 0x00000000001606e0
RAX: 0x0000000000000000, RBX: 0xffffff8041b55e40, RCX: 0xffffff802f8682b0, RDX: 0xffffff8040d3ccf0
RSP: 0xffffff8139d5bc60, RBP: 0xffffff8139d5bc90, RSI: 0xffffff802f903510, RDI: 0xffffff8139d5bca8
R8: 0x0000000000000000, R9: 0x0000000000000010, R10: 0x0000000000000000, R11: 0xffffff802f5f0d90
R12: 0xffffff802f903760, R13: 0xffffff8042923400, R14: 0xffffff8139d5bca8, R15: 0xffffff8041b54c00
RFL: 0x0000000000010286, RIP: 0xffffff802f67579b, CS: 0x0000000000000008, SS: 0x0000000000000000
Fault CR2: 0x0000000000000028, Error code: 0x0000000000000000, Fault CPU: 0x3
Backtrace (CPU 3), Frame : Return Address
0xffffff8139d5b8f0 : 0xffffff802f222fa9
0xffffff8139d5b970 : 0xffffff802f2dbf5e
0xffffff8139d5bb40 : 0xffffff802f2f3456
0xffffff8139d5bb60 : 0xffffff802f67579b
0xffffff8139d5bc90 : 0xffffff802f6c177a
0xffffff8139d5bd90 : 0xffffff7faf7eaa77
0xffffff8139d5be00 : 0xffffff7faf9fafd5
0xffffff8139d5be50 : 0xffffff802f69522f
0xffffff8139d5bea0 : 0xffffff802f694def
0xffffff8139d5bf30 : 0xffffff802f6909c9
0xffffff8139d5bf70 : 0xffffff802f695943
0xffffff8139d5bfb0 : 0xffffff802f2d7127
Kernel Extensions in backtrace:
com.apple.driver.AppleACPIPlatform(2.0)[5D6DA288-1289-3FD4-BFA5-09C109930AE7]@0 xffffff7faf7e6000->0xffffff7faf83efff
dependency: com.apple.iokit.IOACPIFamily(1.4)[045D5D6F-AD1E-36DB-A249-A346E2B48E54]@0xfffff f7faf7b4000
dependency: com.apple.iokit.IOPCIFamily(2.9)[244D4E48-78E6-3369-8D76-285C66EF9BF4]@0xffffff 7faf7bb000
com.apple.driver.AppleEFINVRAM(2.0)[D7607222-EB68-340A-B061-A0503FC9CFC0]@0xfff fff7faf9fa000->0xffffff7fafa02fff
dependency: com.apple.driver.AppleEFIRuntime(2.0)[43683BDA-CCD7-367A-B7AB-2BAF492E96D5]@0xf fffff7faf90f000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
Not yet set
Kernel version:
Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64
Kernel UUID: ADD73AE6-88B0-32FB-A8BB-4F7C8BE4092E
Kernel slide: 0x000000002f000000
Kernel text base: 0xffffff802f200000
System model name: MacBookPro9,2 (Mac-6F01561E16C75D06)
System uptime in nanoseconds: 1129571129
last loaded kext at 1014308639: com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2 (addr 0xffffff7fafa72000, size 233472)
loaded kexts:
com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
com.apple.driver.AppleSDXC 1.5.2
com.apple.driver.AppleUSBHub 666.4.0
com.apple.driver.AppleAHCIPort 3.0.0
com.apple.driver.AppleUSBEHCI 660.4.0
com.apple.driver.AppleUSBXHCI 677.4.0
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleACPIEC 2.0
com.apple.driver.AppleAPIC 1.7
com.apple.driver.AppleIntelCPUPowerManagementClient 217.92.1
com.apple.security.quarantine 3
com.apple.nke.applicationfirewall 153
com.apple.driver.AppleIntelCPUPowerManagement 217.92.1
com.apple.iokit.IOEthernetAVBController 1.0.3b4
com.apple.driver.mDNSOffloadUserClient 1.0.1b5
com.apple.iokit.IONetworkingFamily 3.2
com.apple.iokit.IOUSBUserClient 660.4.2
com.apple.driver.AppleEFINVRAM 2.0
com.apple.iokit.IOAHCIFamily 2.6.5
com.apple.iokit.IOUSBFamily 677.4.0
com.apple.driver.AppleEFIRuntime 2.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.TMSafetyNet 7
com.apple.security.sandbox 278.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.iokit.IOReportFamily 23
com.apple.driver.DiskImages 371.1
com.apple.iokit.IOStorageFamily 1.9
com.apple.driver.AppleACPIPlatform 2.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.pthread 1
Model: MacBookPro9,2, BootROM MBP91.00D3.B08, 2 processors, Intel Core i7, 2.9 GHz, 8 GB, SMC 2.2f44
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xF5), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.4f1 13674, 3 services, 23 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: APPLE HDD HTS547575A9E384, 750.16 GB
Serial ATA Device: MATSHITADVD-R UJ-8A8
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: IR Receiver
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 25.1Rhunter22,
that’s good — no hardware problems = no expensive repairs. The next thing to check is the state of your filesystem. Boot your MacBook Pro into Recovery mode by holding down a Command key and the R key as it starts up. Once the Mac OS X Utilities menu appears, select Disk Utility. On the left-hand side of the Disk Utility window, select your internal disk’s boot partition (typically called “Macintosh HD”). On the right-hand side, press the Verify Disk button if it’s not greyed out; if it is greyed out, or if it reports that errors were found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu to restart in normal mode. Use it as you normally would — do the panics still happen? -
Is there PowerShell Command to Display the Active vHBA WWPN for a VM?
Hello,
I am running a Hyper-V cluster with a VM that I have setup to run NPIV for its data volumes...! I have been searching for a PS cmlet that will display the active vHBA WWPN for the VM but can find anything.
Still Hunting!Hi Webrat,
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
I am unable to authorise my iPod Classic on my new hard drive. All previous hard drives have crashed or been repaired and I never deauthorised the iPod at the time. Can you help me to authorise it please?
Hello zoefromoranmore,
Thanks for using Apple Support Communities.
In order to deauthorize devices which you no longer have, you will have to use the deauthorize all command, found in the article below.
Deauthorize all computers
If need to deauthorize your computer but you can't access it, you need to deauthorize all computers. After you authorize 2 computers, you'll have the option to deauthorize all computers for your Apple ID. You can deauthorize all computers once per year.
Why should I deauthorize all of my computers?
To make sure that only you can play your content, or to free up authorizations used by your old computers. Here's when you should deauthorize all computers:
Your computer doesn't work anymore
You sold or gave away a computer and didn't deauthorize it first
What happens when I deauthorize all computers? Will I lose my content?
Just like deauthorizing a single computer, you won't delete anything if you choose to deauthorize all computers. You just won't be able to play content that you bought from iTunes on those computers until you reauthorize them. You need to have the computer to reauthorize it.
How do I deauthorize all of my computers?
Using one of your authorized computers, follow these steps:
Open your account in iTunes (you may need to sign in with your Apple ID). Or open iTunes, click Store > Sign In, and enter your Apple ID and password.
Click Deauthorize All.
The Deauthorize All button appears only if you have more than 2 authorized computers. If you don't see the Deauthorize All button, that means you only have one authorized computer.
I deauthorized all of my computers. What should I do now?
Reauthorize each computer that you want to use with iTunes. Go to Store > Authorize this computer and enter your Apple ID and password.
Deauthorize your computer using iTunes
http://support.apple.com/kb/HT6283
Take care,
Alex H. -
Info. on commands for Java to control Labview over the internet
To whom this concerns
I just finished putting together a weather station program in labview and are ready to place the VI on the internet.
The plan is to use Java to accomplish the task.
My problem is that I haven't found an intuitive source that shows the proper commands or protocol to interface (create datasocket) between Java and Labview.
Can anyone please advice me on a book or website that gives a clear conscise description on key commands, executables.
Regards
Saul Correahi,Read text
i had seen your problem today, and i am taking part in research about internet application in labview, but i have anything useful information, so, please help me send me a copy book, i want to read about it in my spare time, thanks a lot!
this is my e-mail address:
[email protected]
Maybe you are looking for
-
Multiple sounds, One sound object.
So, What I want to do is load in a narrative, based on what a person is doing in a game. I create a sound object, load in a sound and play it. But, once the user does something, i want to stop that sound and start up another sound. I don't want to us
-
Filter Mailbox database by size in Exchange 2007
How do I filter the mailbox database to determine mailbox size, i.e. users who are near their limit.
-
Date and time mentioned in my mails are not correct.Similar date for all mails
The date and time shown in my mails are not correct for all the mails its showing 31/5/12 but these mails were received on 1/11/14.
-
Transformation Activating Problem
Hi Frds When Iam activating the tranformation i am getting warning msg "Rule 16 (target: ZCODNTYPE group: 01 Standard Group ): Constant is initial" . I have checked the ZCONTYPE (Rule Details) there the Rule Type is Constant and Constant Value is bla
-
Issue implementing Business security profile in IDT
Hi, BO 4.1 SP3 I created a WebI Report with ADMIN privileges with 3 objects and published to Public Folder. Then I created a Business security profile in IDT and Denied USER1 access to 'Display Data' on one of the above 3 objects say Object3 (i.e. Gr